package com.shengcheng;

import com.shengcheng.entity.RechargeInfo;
import com.shengcheng.result.RetVal;
import com.shengcheng.vo.AccountLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "tingshu-account")
public interface AccountFeignClient {
    @PostMapping("/api/account/userAccount/checkAndLock")
    public RetVal checkAndLock(@RequestBody AccountLockVo accountLockVo);
    @GetMapping("api/account/recharge/getRechargeInfo/{orderNo}")
    public RetVal<RechargeInfo> getRechargeInfo(@PathVariable String orderNo);
}